package com.uy.system.response;

import java.io.Serializable;

/**
 * @Author LY
 * @create 2024/3/22 18:14
 * @Description 响应的数据
 */
public class ResponseMessage<T> implements Serializable {

    private Integer code;
    private String message;
    private T data;

    public ResponseMessage() {}

    public ResponseMessage(Integer code, T data) {
        this.code = code;
        this.data = data;
    }

    public ResponseMessage(Integer code, String message, T data) {
        this.code = code;
        this.message = message;
        this.data = data;
    }

    public ResponseMessage(Integer code) {
        this.code = code;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
